package com.jhx.common.http;

/**
 * 返回数据封装
 *
 * @author jack 2017-05-05 14:00
 */
public class HttpResponse<T> {
    public static final int CODE_SUCCESS = 0;               // 请求成功
    public static final int CODE_JSON_PARSE_ERR = -2;       //数据解析异常
    public static final int CODE_NOT_LOGIN = 8888;          //未登录
    public static final int CODE_NOT_PAY = 7775; // 未支付
    private int code = -1;
    private T data;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


}
